# -*- coding: utf-8 -*-

import hanlp 

class HanLPSegmenter:
    def __init__(self):
        self.segmenter = hanlp.load('PKU_NAME_MERGED_SIX_MONTHS_CONVSEG')

    def segment(self, text):
        return self.segmenter(text)